﻿using Newtonsoft.Json;

namespace Sharp.Portal.Mvc.OAuth
{
    /*
     {"access_token":"NThkYzA1NzAyZGIxNDk2YTgwYTM3Zjc4YTE4Yzk1MjM","token_type":"bearer","expires_in":7199,"refresh_token":"MjE1ODE0NDYyOWM0NGY3OWFlZWMxZjg1ZjU3MDNiMDc","userName":"zfh",".issued":"Mon, 02 Oct 2017 11:25:51 GMT",".expires":"Mon, 16 Oct 2017 11:25:51 GMT"}
         */
    public class OAuthResult
    {
        [JsonProperty(PropertyName = "access_token")]
        public string AccessToken { get; set; }

        [JsonProperty(PropertyName = "token_type")]
        public string TokenType { get; set; }

        [JsonProperty(PropertyName = "expires_in")]
        public int ExpiresIn { get; set; }

        [JsonProperty(PropertyName = "refresh_token")]
        public string RefreshToken { get; set; }

        [JsonProperty(PropertyName = "userName")]
        public string UserName { get; set; }

        [JsonProperty(PropertyName = ".issued")]
        public string Issued { get; set; }

        [JsonProperty(PropertyName = ".expires")]
        public string Expires { get; set; }
    }
}